package com.nba;


import lombok.extern.slf4j.Slf4j;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;

import java.net.URI;

@Slf4j
public class Main {
    public static void main(String[] args) throws Exception {
        Configuration conf = new Configuration();
        String HDFS_PATH = "hdfs://192.40.10.130:9000";
        FileSystem fileSystem = FileSystem.get(new URI(HDFS_PATH), conf, "root");
        log.info(fileSystem.toString());
    }
}